<h2>Current Bugs</h2>
<?php echo $this->form;?>
<div><?php echo $this->paginationControl($this->paginator,'Sliding','partials/pagination_control.phtml'); ?></td></div>
<table class="spreadsheet" cellspacing="0">
	<tr>
		<th>&nbsp;</th>
		<th>Date</th>
		<th>Priority</th>
		<th>Status</th>
		<th>Url</th>
		<th>Submitter</th>
		<th>Description</th>
	</tr>
	<?php
	foreach ($this->paginator as $item){
		$arr = $item->toArray();
	
	?>
	<tr>
		<td>
			<a href="<?php echo $this->baseUrl(); ?>/bug/edit/id/<?php echo $arr['id']?>">Edit</a> |
			<a href="<?php echo $this->baseUrl(); ?>/bug/delete/id/<?php echo $arr['id']?>">Delete</a> 
		</td>
		<td>
			<?php echo date('d M Y', $arr['date']);?>
		</td>
		<td>
			<?php echo $arr['priority'];?>
		</td>
		<td>
			<?php echo $arr['status']?>
		</td>
		<td>
			<?php echo $arr['url']?>
		</td>
		<td>
			<?php echo $arr['author']?>
		</td>
		<td>
			<?php echo $arr['description']?>
		</td>
	</tr>
	<?php }?>

</table>